using Godot;

namespace PaintAWorld.Gd
{
    public partial class Dialog : Control
    {
        private DialogManager _manager;
        protected DialogManager Manager => _manager;

        public void BindManager(DialogManager manager) => _manager = manager;

        public void UnbindManager() => _manager = null;

        public void Close() => _manager?.RemoveDialog();
    }
}